package com.ruoyi.eamp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampClassDateMapper;
import com.ruoyi.eamp.domain.EampClassDate;
import com.ruoyi.eamp.service.IEampClassDateService;

/**
 * 值班表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class EampClassDateServiceImpl implements IEampClassDateService 
{
    @Autowired
    private EampClassDateMapper eampClassDateMapper;

    /**
     * 查询值班表
     * 
     * @param dateId 值班表主键
     * @return 值班表
     */
    @Override
    public EampClassDate selectEampClassDateByDateId(Long dateId)
    {
        return eampClassDateMapper.selectEampClassDateByDateId(dateId);
    }

    /**
     * 查询值班表列表
     * 
     * @param eampClassDate 值班表
     * @return 值班表
     */
    @Override
    public List<EampClassDate> selectEampClassDateList(EampClassDate eampClassDate)
    {
        return eampClassDateMapper.selectEampClassDateList(eampClassDate);
    }

    /**
     * 新增值班表
     * 
     * @param eampClassDate 值班表
     * @return 结果
     */
    @Override
    public int insertEampClassDate(EampClassDate eampClassDate)
    {
        return eampClassDateMapper.insertEampClassDate(eampClassDate);
    }

    /**
     * 修改值班表
     * 
     * @param eampClassDate 值班表
     * @return 结果
     */
    @Override
    public int updateEampClassDate(EampClassDate eampClassDate)
    {
        return eampClassDateMapper.updateEampClassDate(eampClassDate);
    }

    /**
     * 批量删除值班表
     * 
     * @param dateIds 需要删除的值班表主键
     * @return 结果
     */
    @Override
    public int deleteEampClassDateByDateIds(Long[] dateIds)
    {
        return eampClassDateMapper.deleteEampClassDateByDateIds(dateIds);
    }

    /**
     * 删除值班表信息
     * 
     * @param dateId 值班表主键
     * @return 结果
     */
    @Override
    public int deleteEampClassDateByDateId(Long dateId)
    {
        return eampClassDateMapper.deleteEampClassDateByDateId(dateId);
    }
}
